<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<script src="<%=request.getContextPath() %>/resources/js/storage/storageManage.js"
        type="text/javascript"></script>
<script src="<%=request.getContextPath() %>/resources/js/storage/storageDocView.js"
        type="text/javascript"></script>
<script>
    $(function () {
        initTopStorageFileViewOrEditForm(getStorageFileViewSubOptions());
        $('#cancelStorageDoc').click(function(){
            postAjax("/storage/deleteStorageSubList.html?storageId=" + $('#storageId').text(),{},
                    refreshStorageDocViewList, {async: false,type:'get'});
        });
        $("#cancelStorageDoc").linkbutton('disable');
        if($('#storageStatus').text() ==="1"){
            $("#cancelStorageDoc").linkbutton('enable');
        };
    });
</script>
<%--入库单号、入库类型、入库日期、供应商名称、仓库名称、入库码单号、经办人、备注--%>
<var hidden="hidden" id="storageId">${storageId}</var>
<var hidden="hidden" id="storageStatus"></var>

<div class="easyui-layout" data-options="fit : true,border : false">
    <div data-options="region:'north',title:'入库单',border : false" style="height: 120px; overflow: hidden;">
        <form id="searchForm-small">
            <div class="mLeft60">
                <div class="mTop10 line-handsome">
                    <div class="fLeft label-handsome ">
                        <label>入库单号:</label>
                        <input id="storageCode" name="storageCode" readonly>
                        </input>
                    </div>
                    <div class="fLeft label-handsome ">
                        <label>入库类型:</label>
                        <input id="storageType" name="storageType" class="easyui-input" readonly/>
                    </div>
                    <div class="fLeft label-handsome" id="memberNoDiv">
                        <label>入库日期:</label>
                        <input id="storageDate" type="text" name="storageDate" class="easyui-datebox"
                               required="required" style="width:90px"/>
                    </div>
                    <div class="fLeft label-handsome ">
                        <label>供应商名称:</label>
                        <input id="providerName" name="providerName" class="easyui-input" readonly/>
                    </div>
                </div>
                <div class="mTop10 line-handsome">
                    <div class="fLeft label-handsome ">
                        <label>仓库名称:</label>
                        <input id="warehouseName" type="text" name="warehouseName" readonly/>
                    </div>
                    <div class="fLeft label-handsome">
                        <label>入库码单号:</label>
                        <input id="storageMdCode" name="storageMdCode"/>
                    </div>
                    <div class="fLeft label-handsome ">
                        <label>经办人:</label>
                        <input id="operator" name="operator" style="width:90px" />
                    </div>
                    <div class="fLeft label-handsome ">
                        <label>备注:</label>
                        <input id="remark" name="remark" class="easyui-input"/>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div data-options="region:'center',border : false,title:'采购入库明细列表'">
        <table id="subItem"></table>
    </div>
</div>